package com.dhwl.hsh.lib.bean.resp;

import android.os.Parcel;
import android.os.Parcelable;

import java.io.Serializable;

/**
 * 简要描述
 *
 * @author Derek.Kidd
 * @version V1.0.0
 * @date 2016-04-20 09:53
 */
public class BannerResponse implements Serializable, Parcelable {


    String id;// id
    String title;//标题
    String adLink;//广告图片活动链接地址
    String adCode;//广告图片URL

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getAdLink() {
        return adLink;
    }

    public void setAdLink(String adLink) {
        this.adLink = adLink;
    }

    public String getAdCode() {
        return adCode;
    }

    public void setAdCode(String adCode) {
        this.adCode = adCode;
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(this.id);
        dest.writeString(this.title);
        dest.writeString(this.adLink);
        dest.writeString(this.adCode);
    }

    public BannerResponse() {
    }

    protected BannerResponse(Parcel in) {
        this.id = in.readString();
        this.title = in.readString();
        this.adLink = in.readString();
        this.adCode = in.readString();
    }

    public static final Parcelable.Creator<BannerResponse> CREATOR = new Parcelable.Creator<BannerResponse>() {
        @Override
        public BannerResponse createFromParcel(Parcel source) {
            return new BannerResponse(source);
        }

        @Override
        public BannerResponse[] newArray(int size) {
            return new BannerResponse[size];
        }
    };
}
